package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler;

import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.permeate.port.pool.*;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyServerVisitorDTO;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.permeate.port.pool.LazyNettyServerPermeatePortPool;
import org.wu.framework.core.mapper.LazyStructMapper;
import org.wu.framework.core.mapper.LazyStructMappers;
import org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler;

/**
 * describe 服务端提前开放出来的端口
 *
 * @author Jia wei Wu
 * @date 2024/01/16 02:21 下午
 * @see DefaultDDDLazyAssembler
 **/
@LazyStructMapper
public interface NettyServerVisitorDTOAssembler {


    /**
     * describe MapStruct 创建的代理对象
     *
     * @author Jia wei Wu
     * @date 2024/01/16 02:21 下午
     **/
    NettyServerVisitorDTOAssembler INSTANCE = LazyStructMappers.getMapper(NettyServerVisitorDTOAssembler.class);

    /**
     * describe 应用层存储入参转换成 领域对象
     *
     * @param lazyNettyServerPermeatePortPoolStoryCommand 保存服务端提前开放出来的端口对象
     * @return {@link LazyNettyServerPermeatePortPool} 服务端提前开放出来的端口领域对象
     * @author Jia wei Wu
     * @date 2024/01/16 02:21 下午
     **/
    LazyNettyServerPermeatePortPool toNettyServerVisitor(LazyNettyServerPermeatePortPoolStoryCommand lazyNettyServerPermeatePortPoolStoryCommand);

    /**
     * describe 应用层更新入参转换成 领域对象
     *
     * @param lazyNettyServerPermeatePortPoolUpdateCommand 更新服务端提前开放出来的端口对象
     * @return {@link LazyNettyServerPermeatePortPool} 服务端提前开放出来的端口领域对象
     * @author Jia wei Wu
     * @date 2024/01/16 02:21 下午
     **/
    LazyNettyServerPermeatePortPool toNettyServerVisitor(LazyNettyServerPermeatePortPoolUpdateCommand lazyNettyServerPermeatePortPoolUpdateCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyServerPermeatePortPoolQueryOneCommand 查询单个服务端提前开放出来的端口对象参数
     * @return {@link LazyNettyServerPermeatePortPool} 服务端提前开放出来的端口领域对象
     * @author Jia wei Wu
     * @date 2024/01/16 02:21 下午
     **/
    LazyNettyServerPermeatePortPool toNettyServerVisitor(LazyNettyServerPermeatePortPoolQueryOneCommand lazyNettyServerPermeatePortPoolQueryOneCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyServerPermeatePortPoolQueryListCommand 查询集合服务端提前开放出来的端口对象参数
     * @return {@link LazyNettyServerPermeatePortPool} 服务端提前开放出来的端口领域对象
     * @author Jia wei Wu
     * @date 2024/01/16 02:21 下午
     **/
    LazyNettyServerPermeatePortPool toNettyServerVisitor(LazyNettyServerPermeatePortPoolQueryListCommand lazyNettyServerPermeatePortPoolQueryListCommand);

    /**
     * describe 应用层删除入参转换成 领域对象
     *
     * @param lazyNettyServerPermeatePortPoolRemoveCommand 删除服务端提前开放出来的端口对象参数
     * @return {@link LazyNettyServerPermeatePortPool} 服务端提前开放出来的端口领域对象
     * @author Jia wei Wu
     * @date 2024/01/16 02:21 下午
     **/
    LazyNettyServerPermeatePortPool toNettyServerVisitor(LazyNettyServerPermeatePortPoolRemoveCommand lazyNettyServerPermeatePortPoolRemoveCommand);

    /**
     * describe 持久层领域对象转换成DTO对象
     *
     * @param lazyNettyServerPermeatePortPool 服务端提前开放出来的端口领域对象
     * @return {@link LazyNettyServerVisitorDTO} 服务端提前开放出来的端口DTO对象
     * @author Jia wei Wu
     * @date 2024/01/16 02:21 下午
     **/
    LazyNettyServerVisitorDTO fromNettyServerVisitor(LazyNettyServerPermeatePortPool lazyNettyServerPermeatePortPool);
}